/**
 * @file framebuffer_rgba8888.cpp
 * @author ThomasKingFree
 * @version 0.1
 * @date 2021-03-16
 *
 * @copyright Copyright (c) 2021
 *
 */

#include "core/framebuffer_rgba8888.h"

namespace YueGUI {
FramebufferRGBA8888::FramebufferRGBA8888()
{
}

FramebufferRGBA8888::~FramebufferRGBA8888()
{
}

void *FramebufferRGBA8888::Transform(int16_t x, int16_t y)
{
    return reinterpret_cast<uint32_t *>(GetFramebuffer()) + y * GetFramebufferWidth() + x;
}
}
